﻿<Application
    x:Class="XingZhe.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" >

        <!--应用程序资源-->
        <Application.Resources>
                <ResourceDictionary>
                        <ResourceDictionary.MergedDictionaries>
                                <ResourceDictionary Source="/XingZhe;component/Themes/Global/PanoramaStyle.xaml"/>
                        </ResourceDictionary.MergedDictionaries>
                        
                        <local:ThemeSetting xmlns:local="clr-namespace:XingZhe;assembly=XingZhe"  x:Key="ThemeSetting"/>
                        <local:ThemeSettingConverter xmlns:local="clr-namespace:XingZhe;assembly=XingZhe"  x:Key="ThemeSettingConverter"/>
                </ResourceDictionary>
        </Application.Resources>

        <Application.ApplicationLifetimeObjects>
                <!--处理应用程序的生存期事件所需的对象-->
                <shell:PhoneApplicationService
            Launching="Application_Launching" Closing="Application_Closing"
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
        </Application.ApplicationLifetimeObjects>

</Application>